home *** CD-ROM | disk | FTP | other *** search
- 'Program to test the assy language routines in WINDLIB, which makes windows.
- 'The attributes are same as QBasic's colors; background 0-7, foreground 0-15.
-
- Option base 1:Dim Scr1%(2000),Scr2%(2000)
- Print "This is the old screen which will be restored after the window is up."
- gosub X1 'Wait for a key
- Where%=Varptr(Scr1%(1)):call Savescrn(Where%)
-
- Color 0,7:cls 'Black on white background
- Lcol%=20:Rcol%=60 'Rcol =< 80: Rcol >= Lcol + 2: Shadow => Lcol > 2
- Urow%=2:Lrow%=20 'Lrow =< 25: Lrow >= Urow: Shadow => Lrow =<24
- Attr%=&h34 '= 16*Background color + Foreground color
- Frame%=1 '0 => Single line, 1 => Double line
- '2 => double horiz, single vert, 3 => single horiz. double vert
- Explode%=1 '0 => Full size, >0 => Explode
- Shadow%=1 '0 => No shadow, >0 => Shadow
- x1%=Lcol% + 256*Rcol% 'Form integer variables to pass
- x2%=Urow% + 256*Lrow%
- x3%=Attr% + 256*Frame%
- x4%=Explode% + 256*Shadow%
- call Makewind(x1%,x2%,x3%,x4%) 'Draw window
- Color 0,3:locate 4,31:print"W E L C O M E T O"
- cOLOR 4,3:LOCATE 6,25:PRINT"B O B M O N T G O M E R Y ' S"
- Color 0,3:Locate 8,39:print"A T"
- locate 10,31:print"using D O S 3 . 2"
-
- gosub X1 'Wait for a key
- Where%=Varptr(Scr2%(1)):call Savescrn(Where%)
-
- Lcol%=10:Rcol%=50 'Rcol =< 80: Rcol >= Lcol + 2: Shadow => Lcol > 2
- Urow%=2:Lrow%=12 'Lrow =< 25: Lrow >= Urow: Shadow => Lrow =<24
- Attr%=&h1A '= 16*Background color + Foreground color
- Frame%=0 '0 => Single line, 1 => Double line
- '2 => double horiz, single vert, 3 => single horiz. double vert
- Explode%=0 '0 => Full size, >0 => Explode
- Shadow%=0 '0 => No shadow, >0 => Shadow
- x1%=Lcol% + 256*Rcol% 'Form integer variables to pass
- x2%=Urow% + 256*Lrow%
- x3%=Attr% + 256*Frame%
- x4%=Explode% + 256*Shadow%
- call Makewind(x1%,x2%,x3%,x4%) 'Draw window
- call Maksnd
- cOLOR 7,1:Locate 7,26:Print "H E L L O"
-
- gosub X1 'Wait for a key
- call Maksnd
- Where%=Varptr(Scr2%(1)):call Getscrn(Where%)
-
- gosub X1 'Wait for a key
- call Maksnd
- Where%=Varptr(Scr1%(1)):call Getscrn(Where%)
- End
-
- X1: A$=Inkey$:If A$="" then goto X1
- Return
-